package string;

public class ReplaceAllDemo {
    public static void main(String[] args) {
            String str = "abc123def456gih";
            str = str.replaceAll("[0-9]+","#NUMBER#");
        System.out.println(str);

        String regex = "(gun|sb|sha)";
        String message = "你sb,gun吧";
        message = message.replaceAll(regex,"***");
        System.out.println(message);

    }
}
